package com.ruoyi.system.domain.city;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 轮播对象 city_carousel
 *
 * @author cjq
 * @date 2023-07-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CityCarousel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 轮播id
     */
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long carouselId;

    /**
     * 轮播图片
     */
    @Excel(name = "轮播图主题")
    private String carouselTitle;

    /**
     * 轮播图片
     */
    @Excel(name = "轮播图片", width = 15,height = 180,cellType = Excel.ColumnType.IMAGE)
    private String carouselUrl;

    /** 轮播文章 */
    @Excel(name = "轮播文章")
    private String carouselArticle;

    /** 轮播文章是否显示 */
    @Excel(name = "轮播文章是否显示")
    private Boolean carouselShow;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
